import 'package:kkhousekeep/generated/json/base/json_field.dart';
import 'package:kkhousekeep/generated/json/home_visitor_record_detail_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class HomeVisitorRecordDetailEntity {
	late int code;
	late HomeVisitorRecordDetailObj obj;
	late String msg;

	HomeVisitorRecordDetailEntity();

	factory HomeVisitorRecordDetailEntity.fromJson(Map<String, dynamic> json) => $HomeVisitorRecordDetailEntityFromJson(json);

	Map<String, dynamic> toJson() => $HomeVisitorRecordDetailEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class HomeVisitorRecordDetailObj {
	late HomeVisitorRecordDetailObjInfo info;

	HomeVisitorRecordDetailObj();

	factory HomeVisitorRecordDetailObj.fromJson(Map<String, dynamic> json) => $HomeVisitorRecordDetailObjFromJson(json);

	Map<String, dynamic> toJson() => $HomeVisitorRecordDetailObjToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class HomeVisitorRecordDetailObjInfo {
	late int id;
	late String address;
	late String owner;
	late String visitor;
	late String phoneNumber;
	late int visitorNum;
	late String visitStartTime;
	late String visitEndTime;
	late String licensePlate;
	late String visitReason;
	late String qrCodeUrl;
	late String createTime;

	HomeVisitorRecordDetailObjInfo();

	factory HomeVisitorRecordDetailObjInfo.fromJson(Map<String, dynamic> json) => $HomeVisitorRecordDetailObjInfoFromJson(json);

	Map<String, dynamic> toJson() => $HomeVisitorRecordDetailObjInfoToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}